package com.jiazhong.advice;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

//横切关注点通知
public class Afteradvice implements AfterReturningAdvice {
    //后置通知，在核心代码之后
    @Override
    public void afterReturning(Object o, Method method, Object[] objects, Object o1) throws Throwable {
        System.out.println("核心代码之后，自动切入after通知");
    }
}
